﻿#if NET45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Caching;

namespace JESAI.HtmlTemplate.Pdf.MemoryCache
{
    public interface ICacheManager:IDisposable
    {
        bool Exists(string key);
        object Get(string key);
        T Get<T>(string key);
        void Set(string key, object data);
        void Set(string key, object data, int cacheTime);
        void Set(string key, object data, CacheDependency dependency);
        void Set(string key, object value, TimeSpan expiresSliding, TimeSpan expiressAbsoulte);
        void Set(string key, object value, TimeSpan expiresIn, bool isSliding = false);
        void Set(string key, object data, int cacheTime, CacheItemPriority priority);
        void Remove(string key);
        void NoAbsoluteExpirationSet(string key, object data, int cacheTime);
        void RemoveMulti(string key);
        void Clear();
    }
}
#endif